<%@ page language="java" contentType="text/html; charset=windows-1255"
    pageEncoding="windows-1255"%>
<%@ page import="database_layer.*" %>
<%@ page import="java.util.*"%>
<%@ page import="processing_layer.*" %>
<%@ page import="java.io.*" %>
<%@ page import="interface_layer.ErrorHandler" %>
<%@ page errorPage="exceptionPage.jsp" %>
<%-- 
	This JSP is a part in the displaying of the user's timetable. you can see
	the "empty" div, waiting to be filled with information using the XSLT related
	JS code.
 --%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1255"/>
<link href="css/templatemo_style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/XSLHandling.js"></script>
<title>Student Time-table</title>
</head>
<body onload="displayResult()">
<jsp:include page="header_part_1.html"/>
            <div id="templatemo_menu">
                <ul>
                    <li><a href="index.jsp">Home</a></li>
                    <li><a href="about.jsp">About Us</a></li>
<%
                    	String username = (String) session.getAttribute("username");
                        if (null != username)
                        {
%>
                            <li><a href="userPage.jsp" class="current">Your profile</a></li>
					        <li><a href="allCourses.jsp">Courses</a></li>
                    		<li><a href="allUsers.jsp">Users</a></li>
<%
                        }
%>
                </ul>    	
            </div> <!-- end of templatemo_menu -->
<jsp:include page="header_part_2.html"/>
<div id="content">
<%
	if (null == username)
	{
		ErrorHandler.parseForErrors(Common.UNAUTHORIZED_OPERATION, response, null);
		return;
	}
	else
	{
		String chosenStyleSheet = request.getParameter("chosenXSL");
%>
	<input type="hidden" id="get_stylesheet" value="<%= chosenStyleSheet %>"/>
<%
	}
%>
<div id="timetable_container"></div>
</div>
<jsp:include page="sidebar.jsp"/>
<jsp:include page="footer.html"/>
</body>
</html>